package com.example.asa;

import java.sql.Timestamp;

public class Disaster {
    private int id;
    private String name; // 事件名称
    private Timestamp timestamp; // 发生时间
    private String location; // 地点
    private String affected_area; // 影响区域
    private String description; // 描述
    private String status; // 状态
    private String severity; // 严重程度
    private String contact; // 联系方式
    private String initialSolution; // 初始解决方案

    // Getter and Setter methods

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Timestamp getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Timestamp timestamp) {
        this.timestamp = timestamp;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getAffectedArea() {
        return affected_area;
    }

    public void setAffectedArea(String affected_area) {
        this.affected_area = affected_area;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSeverity() {
        return severity;
    }

    public void setSeverity(String severity) {
        this.severity = severity;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    // 新增字段及其 getter 和 setter 方法

    public String getInitialSolution() {
        return initialSolution;
    }

    public void setInitialSolution(String initialSolution) {
        this.initialSolution = initialSolution;
    }

    public void setAffected_area(String affected_area) {
    }

    private String reportUser; // 新增字段

    public String getReportUser() {
        return reportUser;
    }

    public void setReportUser(String reportUser) {
        this.reportUser = reportUser;
    }

}
